package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 告警配置表
 * </p>
 *
 * @author chenhc
 * @since 2025-02-06
 */
@Data
@TableName("warning_configuration")
@ApiModel("告警配置表")
@SuppressWarnings("serial")
public class Configuration extends Field {
    private static final long serialVersionUID = 1L;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("区域名称")
    private String areaId;

    @ApiModelProperty("区域名称")
    private String areaName;

    @ApiModelProperty("告警类型0摄像头温度预警")
    private Integer warningType;

    @ApiModelProperty("告警方式0电话1钉钉2邮箱3短信，逗号隔开")
    private String warningWays;

    @ApiModelProperty("月份从1-12，逗号隔开")
    private String month;

    @ApiModelProperty("预警等级0无1低2中3高")
    private Integer warningLevel;

    @ApiModelProperty("状态（0代表启用 2代表禁用）")
    private String status;

    @ApiModelProperty("告警联系人id，逗号隔开")
    private String warningContactsId;

    @ApiModelProperty("告警联系人名称，逗号隔开")
    private String warningContacts;

    @ApiModelProperty("告警联系人电话，逗号隔开")
    private String warningContactsPhone;

    @ApiModelProperty("设备编码")
    private String deviceId;

    @ApiModelProperty("报警间隔时间，单位分")
    private Integer timeInterval;

}
